package com.yxinsur.imc.business.dto;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
* Title: Favour.java
* Description: 保单受益人信息
* Company: 壹心科技[经代开发组]
* @date 2021-01-25
* @version 1.0
 */
@Data
@ToString
public class Favour implements Serializable {

	private static final long serialVersionUID = 1L;

	@NotBlank(message="是否法定受益人[isLegalBeneficiary]不能为空")
	private String isLegalBeneficiary;

	@NotBlank(message="是否同投保人[isSameApplicant]不能为空")
	private String isSameApplicant;

	@NotBlank(message="与被保人的关系[relationWithInsurant]不能为空")
	private String relationWithInsurant;

	@NotBlank(message="受益人姓名[fullName]不能为空")
	private String fullName;

	@NotBlank(message="受益人证件类型[certiType]不能为空")
	private String certiType;

	@NotBlank(message="受益人证件号码[certiCode]不能为空")
	private String certiCode;

	private Date certiExpiryDate;

	@NotBlank(message="受益人性别[gender]不能为空")
	private String gender;

	@NotNull(message="受益人出生日期[birthday]不能为空")
	private Date birthday;

	private String houseTel;

	private String mobile;

	private String postalcode;

	private String mailAddr;

	@NotNull(message="受益人收益比例[benefitRate]不能为空")
	private String benefitRate;

	@NotNull(message="受益人受益顺序[benefitOrder]不能为空")
	private String benefitOrder;

}